<?php

namespace ORM\Dynasties2;

use Doctrine\ORM\Mapping as ORM;

/**
 * ORM\Dynasties2\Wars
 */
class Wars
{
    /**
     * @var integer $id
     */
    private $id;

    /**
     * @var integer $attacker
     */
    private $attacker;

    /**
     * @var integer $defender
     */
    private $defender;

    /**
     * @var integer $warType
     */
    private $warType;

    /**
     * @var smallint $percentage
     */
    private $percentage;

    /**
     * @var integer $whichClaim
     */
    private $whichClaim;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set attacker
     *
     * @param integer $attacker
     * @return Wars
     */
    public function setAttacker($attacker)
    {
        $this->attacker = $attacker;
        return $this;
    }

    /**
     * Get attacker
     *
     * @return integer 
     */
    public function getAttacker()
    {
        return $this->attacker;
    }

    /**
     * Set defender
     *
     * @param integer $defender
     * @return Wars
     */
    public function setDefender($defender)
    {
        $this->defender = $defender;
        return $this;
    }

    /**
     * Get defender
     *
     * @return integer 
     */
    public function getDefender()
    {
        return $this->defender;
    }

    /**
     * Set warType
     *
     * @param integer $warType
     * @return Wars
     */
    public function setWarType($warType)
    {
        $this->warType = $warType;
        return $this;
    }

    /**
     * Get warType
     *
     * @return integer 
     */
    public function getWarType()
    {
        return $this->warType;
    }

    /**
     * Set percentage
     *
     * @param smallint $percentage
     * @return Wars
     */
    public function setPercentage($percentage)
    {
        $this->percentage = $percentage;
        return $this;
    }

    /**
     * Get percentage
     *
     * @return smallint 
     */
    public function getPercentage()
    {
        return $this->percentage;
    }

    /**
     * Set whichClaim
     *
     * @param integer $whichClaim
     * @return Wars
     */
    public function setWhichClaim($whichClaim)
    {
        $this->whichClaim = $whichClaim;
        return $this;
    }

    /**
     * Get whichClaim
     *
     * @return integer 
     */
    public function getWhichClaim()
    {
        return $this->whichClaim;
    }
}